From 9a301f1636a962ff8cd5d4447f06679fdc890b5a Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Thu, 18 Nov 2010 02:32:58 +0000 Subject: [PATCH] Reverting r76928, causes segfault --- includes/IP.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/IP.php b/includes/IP.php index 356c770ce4..9aeba39f2c 100644 --- a/includes/IP.php +++ b/includes/IP.php @@ -42,7 +42,7 @@ define( 'RE_IPV6_ADD', '|' . // has no "::" RE_IPV6_WORD . '(?::' . RE_IPV6_WORD . '){7}' . '|' . // contains one "::" in the middle (awkward regex for PCRE 4.0+ compatibility) - RE_IPV6_WORD . '(?::(?P(?!(?P=abn)):(?P))?' . RE_IPV6_WORD . '){1,6}(?P=iabn)' . + RE_IPV6_WORD . '(?::(?!(?P=abn))(?P:(?P))?' . RE_IPV6_WORD . '){1,6}(?P=iabn)' . // NOTE: (?!(?P=abn)) fails iff "::" used twice; (?P=iabn) passes iff a "::" was found. // Better regexp (PCRE 7.2+ only), allows intuitive regex concatenation -- 2.20.1